/*
    SUSAN® - Sole of Unix Save ANything

   Copyright (C) 2020-2020 Hechzh Property

   
*/

#include <lib/status_packet.h>
#include <lib/bsock.h>

void StatusPacket::send(const char* msg, int len)
{
  if (bs) {
    memcpy(bs->msg, msg, len + 1);
    bs->message_length = len + 1;
    bs->send();
  } else {
    callback(msg, len, context);
  }
}
